﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DataAccess.Exceptions
{
    public class DataRepositoryException : Exception
    {
        public static string PROJECT_REPOSITORY = "projectRepository";
        public static string USER_REPOSITORY = "userRepository";
        public static string FORM_REPOSITORY = "formRepository";
        public static string PROGRAM_REPOSITORY = "programRepository";
        public static string SUBPROJECT_REPOSITORY = "subprojectRepository";

        public string Initiator { get; private set; }
        public string Text { get; private set; }

        public DataRepositoryException(string message, string initiator, string text = "") : base(message)
        {
            this.Initiator = initiator;
            this.Text = text; 
        }
    }
}